<template>
	<view class="container">
		<view class="text ">牛逼123111</view>
		<sar-button @click="setUserInfo" class="u-font-30">修改名字</sar-button>
		<testVue></testVue>
		<view class="">
			{{lifeDataStore.userInfo}}
		</view>
	</view>
</template>

<script setup lang="ts">
	import { findSetting } from '@/api/wxapp';
	import { ref, onMounted } from 'vue';
	import testVue from "@/components/test.vue";
	import { refreshPage, getDay, timeChange, formatTime } from '@/utils/common';
	import {
		userLifeDataStore
	} from '@/store/lifeDataStore';
	const lifeDataStore = userLifeDataStore();
	// 挂载 
	onMounted(() => {
		findSetting().then((res : any) => {
			console.log(res)
		})
	})
	const setUserInfo = () => {
		uni.navigateTo({
			url: '/pages/public/login'
		})
		console.log(getDay(), timeChange(1000000), formatTime('1749634879'));
		// lifeDataStore.setUserInfo({
		// 	name: '测试'
		// })
	}
</script>

<style scoped lang="scss">
	.container {
		.text {
			font-weight: bold;
			font-size: 50rpx;
		}
	}
</style>